package com.showsu.editor.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.showsu.editor.entity.po.TblXhsAwemeDetailRecord;
import com.showsu.editor.entity.po.TblXhsDewaterRecord;
import com.showsu.editor.entity.vo.request.RequestVO;
import com.showsu.editor.entity.vo.response.XhsLiveVO;

import java.util.Date;
import java.util.List;


/**
 * @Author: jph
 * @Description: xhs笔记详情查询记录表
 * @Date: Created in 15:52 下午 2025/08/14
 * @Modified By:
 */
public interface IXhsAwemeDetailRecordService extends IService<TblXhsAwemeDetailRecord> {

    /**
     * 条件查询记录总数
     * @param userId
     * @return
     */
    Integer queryCount(Long userId);

    /**
     * 条件查询记录总数
     * @param userId
     * @param startTime
     * @param endTime
     * @return
     */
    Integer queryCount(Long userId, String startTime, String endTime);

    /**
     * 条件查询记录总数
     * @param userId
     * @param startDate
     * @param endDate
     * @return
     */
    Integer queryCount(Long userId, Date startDate, Date endDate);

    /**
     * 条件查询记录
     * @param userId
     * @return
     */
    List<TblXhsAwemeDetailRecord> queryList(Long userId);
    /**
     * 条件查询记录
     * @param userId
     * @return
     */
    List<TblXhsAwemeDetailRecord> queryList(Long userId,Integer limit);


    /**
     * 保存记录
     * @param clientRequest
     * @param userId
     * @param result
     * @param cost
     * @return
     */
    Long saveRecord(RequestVO clientRequest, Long userId, TblXhsAwemeDetailRecord result, Long cost);
}
